package adapter.objectAdapter;

import adapter.adapter.DriveAdapter;
import adapter.src.DriveForWindows;

/**
 * 使用聚合的方式进行依赖, 降低耦合
 */
public class DriveObjectAdapter implements DriveAdapter {

    private final DriveForWindows driveForWindows = new DriveForWindows(100.0);

    @Override
    public Double getTrueRow() {
        Double row = driveForWindows.getRow();
        return row * 1073741824  / 1000000000;
    }
}
